Validate reshare permissions against actual path that the user tries to share#27820
Closed
juliusknorr wants to merge 4 commits intomasterfrom
Closed
Validate reshare permissions against actual path that the user tries to share#27820juliusknorr wants to merge 4 commits intomasterfrom
juliusknorr wants to merge 4 commits intomasterfrom
Conversation
Member
Author
|
Other bug found, to be filed separately:
|
Member
Author
|
Unit tests should be fine now and were actually using the wrong source node in case of a reshare as then the share would always be created from the resharing users filesystem instead of using the owners user folder as a base. |
PVince81
reviewed
Sep 16, 2021
Member
|
We really need integrations tests for this. |
Merged
627640e to
09a6305
Compare
skjnldsv
approved these changes
Oct 20, 2021
Member
Author
|
Will look into some tests for that and will double check the suggestion from @PVince81 |
…to share Otherwise this could lead to taking the wrong user mount in case there are multiple ones with different permissions that the user could use to reshare Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Member
Author
|
Pushed another attempt as the share node might be the one located in the owners filesystem server/lib/private/Share20/Share.php Lines 182 to 186 in 215aef3 |
8d8664e to
20fc6a7
Compare
Signed-off-by: Julius Härtl <jus@bitgrid.net>
20fc6a7 to
a6c557c
Compare
Merged
Merged
This comment was marked as abuse.
This comment was marked as abuse.
Merged
Merged
Merged
This was referenced May 3, 2023
Merged
Closed
Merged
Merged
Merged
Member
Author
|
Closing as I don't have time to properly finish this |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Otherwise this could lead to taking the wrong user mount in case there
are multiple ones with different permissions that the user could use to
reshare
Possible reproduction:
Before:
💥 Cannot increase permissions
After:
The proper source user mount is taken for permission comparison where the user has reshare permissions and the share link creation passes.